<%@ page import="br.com.rosena.model.bean.persistente.Persistente" %>
<%
    String idConfiguracaoProcessoVersao = request.getParameter("idConfiguracaoProcessoVersao") != null ? request.getParameter("idConfiguracaoProcessoVersao") : "";
    Persistente objUsuarioSite = (Persistente) request.getSession().getAttribute("USUARIO_LOGADO_SITE");
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Upload </title>
<script type="text/javascript" src="jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="jquery.fileupload.js"></script>
<script type="text/javascript">
    $(document).ready(function() {
        $("#fileUpload").fileUpload({
            'uploader': 'uploader.swf',
            'cancelImg': 'cancel.png',
            'folder': 'upload',
            'script': 'upload.php',
            'scriptData' : '{teste:123}'
        });
        $("#fileUpload2").fileUpload({
            'uploader': 'uploader.swf',
            'height': 30,
            'cancelImg': 'cancel.png',
            'folder': 'upload',
            'script': 'upload.jsp',
            'multi': false
        });
        $("#fileUpload3").fileUpload({
            'uploader': 'uploader.swf',
            'cancelImg': 'cancel.png',
            'folder': 'upload',
            'script': 'upload.jsp?id=ConfiguracaoProcessoVersao_<%=idConfiguracaoProcessoVersao%>@<%=objUsuarioSite.getId()%>@',            
            'fileDesc': 'Arquivos Texto',
            'fileExt': '*.doc;*.docx;*.pdf;*.txt',
            'multi': false,
            'auto': false
        });
    });
</script>
<style>
body {
	font: 12px/18px Arial, Helvetica, sans-serif;
}
.fileUploadQueueItem {
	font: 11px Verdana, Geneva, sans-serif;
	background-color: #F5F5F5;
	border: 3px solid #E5E5E5;
	margin-top: 5px;
	padding: 10px;
	width: 300px;
}
.fileUploadQueueItem .cancel {
	float: right;
}
.fileUploadProgress {
	background-color: #FFFFFF;
	border-top: 1px solid #808080;
	border-left: 1px solid #808080;
	border-right: 1px solid #C5C5C5;
	border-bottom: 1px solid #C5C5C5;
	margin-top: 10px;
	width: 100%;
}
.fileUploadProgressBar {
	background-color: #0099FF;
}
</style>
</head>
<body>
<h2 align="center">Envie-nos seu arquivo, clicando em Browse: Busque o arquivo e clique em Publicar.</h2>
<p align="center">
	<input name="fileUpload2" id="fileUpload3"  value="Procurar" type="file" />
    <input type="button" class="" onclick="javascript:$('#fileUpload3').fileUploadStart();" value="Publicar">
</p>
<p>&nbsp;</p>
</body>
</html>